﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using KDG.FoldersSize.Properties;

namespace KDG.FoldersSize
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            if (Settings.Default.strOldOpenedFolders == null)
                Settings.Default.strOldOpenedFolders = new global::System.Collections.ArrayList();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            string path = string.Empty;
            if (args.Length > 0)
                path = args[0];
            Application.Run(new FormMain(path));

            Settings.Default.Save();
        }
    }
}
